import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/page/login/Login'
import Test from '@/page/test/Test'
import Home from '@/page/home/Home'

Vue.use(Router)

export default new Router({
  mode:'history', //加这一行 可以 不同的路径显示不同的内容
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login,
      meta: {
        title: '登录'
      }
    }
  ,
  {
    path: '/test',
    name: 'Test',
    component: Test
  },
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta: {
      title: '后台管理'
    }
  }
  ]
})
